<?
include_once('conn.php');
include_once('include/func.php');
include("admin_check.php") ;
if($admin[0][2]<>10){exit('<script>alert("您没有权限"); window.history.back(-1);</script>');}
if($_POST){
	$db->UPDATE("UPDATE `".tablepre."config` SET `value`='".$_POST[editor1]."' WHERE (`id`='18')");
	header("Location: $nowpage");
	exit;
	}
?>	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo systemname;?></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/admin.css" rel="stylesheet" type="text/css" />
	<!-- jquery packed -->
	<script type="text/javascript" src="js/jquery-1.4.4.js"></script>
    <script type="text/javascript" src="js/dtree.js"></script>
	<!-- tableRowCheckboxToggle -->
	<script type="text/javascript" src="js/tableRowCheckboxToggle.js"></script>
    	<script type="text/javascript" src="fck/ckeditor.js"></script>
	<script src="fck/fck.js" type="text/javascript"></script>
	<link href="fck/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript"> 
    function fade() 
{ 
    //停留2秒后消失,在停留的时候,透明度为1.0什么都不做 
    $('<div id="add" class="quick-alert">操作成功</div>').insertAfter($("#example")).animate({opacity: 1.0}, 2000).fadeOut("slow",function(){ 
   //隐藏时把元素删除 
   $(this).remove(); 
}); 
} 
</script> 





</head>
<body <? echo isset($_GET[ok])?'onload="fade();"':''; ?>>
<div id="wrap">
<div id="main" class="clearfix">
<div id="side">
  </div>
  <div id="head"><? include_once('admin_head.php');?></div><table width="900" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="13%" valign="top"><div id="left"><?
  include_once('admin_menu.php');
  ?></div></td>
    <td width="87%" valign="top"><div id="right">
<div id="example"> </div>
<form id="form2" name="form2" method="post" action="">
  <textarea cols="80" id="editor1" name="editor1" rows="10" ><? echo parameters(18);?></textarea>
  		<script type="text/javascript">
		//<![CDATA[

			// Replace the <textarea id="editor"> with an CKEditor
			// instance, using default configurations.
			CKEDITOR.replace( 'editor1',
				{
					toolbar :
					[
						[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ]
					]
				});

		//]]>
		</script><br />
<input type="submit" name="button" value="提交" />
</form></div></td>
  </tr>
</table>

  
  
  </div>
  </div>

<div id="footer">
<?
include_once('fooder.php');
?>
</div>
</BODY>
</HTML>
